package fr.cie.blog.domainservice;


import java.util.List;

import fr.cie.blog.beans.Avatar;
import fr.cie.blog.beans.Card;
import fr.cie.blog.modeldao.hib.AvatarDaoImplHib;

/**
 * @author AetM
 * 
 */
public class ServiceAvatarDao implements IServiceAvatar {
	/**
	 * serviceAvatarImpl.
	 */
	private final IServiceAvatar serviceAvatarImpl = new AvatarDaoImplHib();

	@Override
	public final int save(final Avatar avatar) {
		return serviceAvatarImpl.save(avatar);
	}

	@Override
	public final int delete(final Avatar avatar) {
		return serviceAvatarImpl.delete(avatar);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findAll()
	 */
	@Override
	public final List<Avatar> findAll() {
		return serviceAvatarImpl.findAll();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * fr.cie.blog.domainservice.IServiceAvatar#findByCard(fr.cie.blog.beans
	 * .Card)
	 */
	@Override
	public final Avatar findByCard(final Card pCard) {
		return serviceAvatarImpl.findByCard(pCard);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findById(int)
	 */
	@Override
	public final Avatar findById(final long pIdentifier) {
		return serviceAvatarImpl.findById(pIdentifier);
	}

	@Override
	public final int update(final Avatar avatar) {
		return serviceAvatarImpl.update(avatar);
	}

	@Override
	public final Avatar findByName(final String pAvatarName) {
		return serviceAvatarImpl.findByName(pAvatarName);
	}

}